package com.cyy.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cyy.content.model.dto.CoursePreviewDto;
import com.cyy.content.model.po.CoursePublish;

/**
 * <p>
 * 课程发布 服务类
 * </p>
 *
 * @author cyy
 * @since 2025-01-14
 */
public interface CoursePublishService extends IService<CoursePublish> {

    /**
     * 获取课程预览信息
     * @param courseId
     * @return
     */
    CoursePreviewDto getCoursePreviewInfo(Long courseId);

    CoursePublish getCoursePublish(Long courseId);

    CoursePublish getCoursePublishCache(Long courseId);

    void commitAudit(Long courseId, Long companyId);

    void publish(Long companyId, Long courseId);
}
